<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:body>
        <ui:composition template="WEB-INF/template/master.xhtml">
            <ui:define name="header">
                <div data-role="header" data-theme="a" data-position="inline">
                    <a href="day.xhtml" data-icon="arrow-l" data-iconpos="left">Zurück</a>
                    <h1 align="center">Optionen</h1>
                </div>
            </ui:define>

            <ui:define name="content">
                <div data-role="content" data-theme="a">
                    <ul data-role="listview" data-inset="true" data-theme="a">
                        <li>
                            <p class="ui-options">ID des Vorlesungsplans: <b>#{timetableBean.getCoursescheduleid()}</b></p>
                        </li>
                    </ul>
                    <div data-role="controlgroup">
                        <a href="IcsCalendarServlet?schedule=#{timetableBean.coursescheduleid}"
                           type="button"
                           target=" _blank">
                            <img align="left" style="margin-right: 15px" src="resources/images/calendar.png"/><span class="ui-options-icon-label">Vorlesungen in Kalender importieren</span>
                        </a>
                        <a href="IcsCalendarExamsServlet?schedule=#{timetableBean.coursescheduleid}"
                           type="button"
                           target=" _blank">
                            <img align="left" style="margin-right: 15px" src="resources/images/calendar.png"/><span class="ui-options-icon-label">Prüfungen in Kalender importieren</span>
                        </a>
                        <a href="PDFServlet?schedule=#{timetableBean.coursescheduleid}"
                           type="button"
                           target=" _blank">
                            <img align="left" style="margin-right: 20px" src="resources/images/download.png"/><span class="ui-options-icon-label">Vorlesungen als PDF speichern</span>
                        </a>
                        <a href="PDFServletExam?schedule=#{timetableBean.coursescheduleid}"
                           type="button"
                           target=" _blank">
                            <img align="left" style="margin-right: 20px" src="resources/images/download.png"/><span class="ui-options-icon-label">Prüfungen als PDF speichern</span>
                        </a>
                        <a href="changeID.xhtml"
                           type="button">
                            <img align="left" style="margin-right: 15px" src="resources/images/refresh.png"/><span class="ui-options-icon-label">Bestehenden Plan laden</span>
                        </a>
                        <a href="reset.xhtml"
                           type="button">
                            <img align="left" style="margin-right: 15px" src="resources/images/refresh.png"/><span class="ui-options-icon-label">Plan zurücksetzen</span>
                        </a>
                    </div>
                </div>

            </ui:define>

            <ui:define name="footer">
                
                <div data-role="footer" data-theme="a" data-position="fixed" data-id="day_week_exams">

   
                    <c:if test="#{timetableBean.validateParameter()==true}">
                        <div data-role="navbar" data-theme="a">
                            <ul>
                                <li><a href="day.xhtml?schedule=#{timetableBean.coursescheduleid}&amp;rand=#{timetableBean.getRandomForURL()}">Heute</a></li>
                                <li><a href="week.xhtml?rand=#{timetableBean.getRandomForURL()}" id="week">Woche</a></li>
                                <li><a href="exams.xhtml?rand=#{timetableBean.getRandomForURL()}">Prüfungen</a></li>
                            </ul>
                        </div>
                    </c:if>

                </div>

            </ui:define>

        </ui:composition>
    </h:body>
</html>